package com.pactera.commons;


/**
 * @Description: 返回结果枚举类
 * @Param:
 * @return:
 */
public enum RestStatus {
    SUCCESS(0),
    OTHER_ERROR(1),
    ;

    private final int code;


    RestStatus(int code) {
        this.code = code;
    }

    public int code() {
        return this.code;
    }

    @Override
    public String toString() {
        return Integer.toString(this.code);
    }
}

